package top.wyix.module.test.service;

import top.wyix.module.test.controller.admin.framework.vo.ValDemoReq;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author wangdx
 */
//@Validated
public interface IValidateService {
    Object validate(@NotNull @Min(10) Integer id, @NotNull String name);

    Object validateEn(@Valid ValDemoReq valDemoReq);

    @NotNull(message = "返回值不能为空")
    Object hello(@NotNull @Min(10) Integer id, @NotNull String name);
}
